@echo off
if not exist user\data\gjwu.dic (
    echo "user\data\gjwu.dic is missing!"
    exit /b 404
)

set iscc_home="C:\Program Files (x86)\Inno Setup 6"
set version=%1
if "%version%" equ "" (
    echo Version is missing!
    echo Usage: build-setup VERSION
    exit /b 404
)
%iscc_home%\iscc /DMyAppVersion=%version% setup.iss
